//============================================================================
// Name        : os-ass1.cpp
// Author      : shai givony 043137314, elad kadosh 061242954
// Version     :
// Copyright   :
// Description : Hello World in C++, Ansi-style
//============================================================================


#include <iostream>
#include <stdlib.h>
#include <signal.h>
#include "Shell.h"

#include "Worker.h"


using namespace std;

void handle(int SIG){
	cout<<"a:"<<SIG<<endl;
	exit(1);
}


int main() {
	//signal(SIGSEGV,handle);
	Shell *shell = new Shell();
	//((Worker*)(shell->getMailer()->getGraph()->getNodes()->at(1)))->print();
	try{
	shell->show_menu();
	}
	catch(char const *&_e) {
	        {
	        	cout<<"a: "<<_e<<endl;
	        }
	    }

	//shell->getMailer()->getGraph()->print();


	cout << "End" << endl;
	return 0;
}
